from django.db import models

# Create your models here.
class Root(models.Model):
    root_name = models.CharField(max_length=20,default='admain')
    root_psd = models.CharField(max_length=30,default='123')

class Check_in(models.Model):
    name = models.CharField(max_length=20)
    phone = models.CharField(max_length=30)
    place = models.CharField(max_length=3)
    recarde = models.CharField(max_length=40)
    money = models.CharField(max_length=30)
    roomid = models.CharField(max_length=7)
    indate = models.DateField()
    outdate = models.DateField()

class Room(models.Model):
    roomid = models.CharField(unique=True, max_length=10)
    roomtype = models.CharField(max_length=10)
    roomprice = models.CharField(max_length=20)
    roomstate = models.CharField(default="未入住", max_length=10)

